<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="../datepicker/jquery-ui.min.css">
    <link type="text/css" rel="stylesheet" href="../css/app.css"/>
    <link type="text/css" rel="stylesheet" href="../css/loginMobile.css"/>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../datepicker/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/pc/js/all.js"></script>
</head>
<body id="Ibody">
<!--
	制作：九哥
	页面：工厂信息列表
-->




<!-----------资料完善---------->
<div class="stepTwo" id="IstepTwo">
    <div class="identity">资料完善</div>
    <div class="identityDiv"></div>
    <div class="identityDiv judgeFull" style="margin:5px 0;" data-class="factory">
        <div class="identityItem" onclick="setJump(1)">
            基本信息（必填）
            <!-- <span class="fillIn_1">?</span> -->
        </div>
    </div>
    <div class="identityDiv judgeFull" style="margin:5px 0;" data-class="facFile">
        <div class="identityItem" onclick="setJump(2)">
            工厂认证
            <!-- <span class="fillIn_2">?</span> -->
        </div>
    </div>
    <div class="identityDiv judgeFull" style="margin:5px 0;" data-class="facPro">
        <div class="identityItem" onclick="setJump(3)">
            工厂产品
            <!-- <span class="fillIn_3">?</span> -->
        </div>
    </div>
    <div class="identityDiv judgeFull" style="margin:5px 0;" data-class="facEquip">
        <div class="identityItem" onclick="setJump(4)">
            工厂设备
            <!-- <span class="fillIn_4">?</span> -->
        </div>
    </div>
    <div class="identityDiv judgeFull" style="margin:5px 0;" data-class="facYield">
        <div class="identityItem" onclick="setJump(5)">
            产量产能
            <!-- <span class="fillIn_5">?</span> -->
        </div>
    </div>
    <div class="identityDiv judgeFull" style="margin:5px 0;" data-class="facFabric">
        <div class="identityItem" onclick="setJump(6)">
            原料面料
            <!-- <span class="fillIn_6">?</span> -->
        </div>
    </div>
    <div class="identityDiv judgeFull" style="margin:5px 0;" data-class="facEnv">
        <div class="identityItem" onclick="setJump(7)">
            工厂环境
            <!-- <span class="fillIn_7">?</span> -->
        </div>
    </div>
    <div class="identityDiv" style="margin:5px 0;display:none;" id="toHome">
        <div class="identityItem"
             onclick="window.location.href = '/h5/index.html';"
             style="color:#fff;background:#0088cc;"
        >回到首页</div>
    </div>
    <div class="identityDiv" style="margin:5px 0;display:none;" id="toMy">
        <div class="identityItem"
             onclick="window.location.href = '/h5/index.html';"
             style="color:#fff;background:#0088cc;"
        >回到首页</div>
    </div>
    <div class="identityDiv"></div>
</div>
<!-----------资料完善---------->





<!-----------提示信息---------->
<div id="errMsg"></div>
<!-----------提示信息---------->
</body>
<script type="application/javascript" src="../js/app.js"></script>
<script type="application/javascript">
    (function(){
        //判断上游
        var type = getUrlParam('type');
        if (type=='edit') {
            $('#toMy').show();
        } else {
            $('#toHome').show();
        }
        var fullInfo = cacheGet('factory')
        $('.judgeFull').each(function () {
            if (cacheGet($(this).attr('data-class')) == null || cacheGet($(this).attr('data-class')) == false) {
                // $(this).children().children('span').text('?')
            } else {
                // $(this).children().children('span').text('√')
            }
        })
    })();
    function setJump(v){
        if (v==0) { getAppErrMsg('点击错误','',0); }
        var per = cacheGet('factoryPer');
        // //基本信息必填
        // if (!per && v>1) {
        //     getAppErrMsg('基本信息必填！','',0); return;
        // }
        // if (per && per.factory==0 && v>1) {
        //     getAppErrMsg('基本信息必填！','',0); return;
        // }
        var linkArr = [
            '',
            'factory',
            'facFile',
            'facPro',
            'facEquip',
            'facYield',
            'facFabric',
            'facEnv'
        ];
        window.location.href = '/h5/login/' + linkArr[v] + '.html';
    }
    /**
     * 本地缓存，获取
     * */
    function cacheGet(key){
        return JSON.parse(localStorage.getItem(key));
    }
    /**
     * 本地缓存，新增
     * */
    function cacheSet(key,val){
        localStorage.setItem(key, "");
        localStorage.setItem(key, JSON.stringify(val));
    }
</script>
</html>